import request from '@/utils/request'

// 查询压力告警信息列表
export function listDispatchPressureAlarmInformation(query) {
  return request({
    url: '/system/dispatchPressureAlarmInformation/list',
    method: 'get',
    params: query
  })
}

// 查询压力告警信息详细
export function getDispatchPressureAlarmInformation(pressureAlarmInformationId) {
  return request({
    url: '/system/dispatchPressureAlarmInformation/' + pressureAlarmInformationId,
    method: 'get'
  })
}

// 新增压力告警信息
export function addDispatchPressureAlarmInformation(data) {
  return request({
    url: '/system/dispatchPressureAlarmInformation',
    method: 'post',
    data: data
  })
}

// 修改压力告警信息
export function updateDispatchPressureAlarmInformation(data) {
  return request({
    url: '/system/dispatchPressureAlarmInformation',
    method: 'put',
    data: data
  })
}

// 删除压力告警信息
export function delDispatchPressureAlarmInformation(pressureAlarmInformationId) {
  return request({
    url: '/system/dispatchPressureAlarmInformation/' + pressureAlarmInformationId,
    method: 'delete'
  })
}
